package com.qf.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.Todolist;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 事项计划(Todolist)表数据库访问层
 *
 * @author makejava
 * @since 2024-11-08 12:06:18
 */
public interface TodolistDao extends BaseMapper<Todolist> {


    Integer addTodolist (Todolist todolist);

 @Delete("delect from t_todolist where id= #{id}")
    Integer delectById(Integer id);


    Integer updeteById  (Todolist todolist);

    @Select("select *from t_todolist where type=#{type} ")
    List<Todolist> selectBytype(String type);

}

